package com.kaikai.edu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
//扫描公共组件Common中的Swapper
@ComponentScan(basePackages = {"com.kaikai"})
//启用swagger
@EnableSwagger2
//服务调用端
@EnableFeignClients
@EnableDiscoveryClient
//@EnableCircuitBreaker
@MapperScan("com.kaikai.edu.mapper")
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class,args );
    }
}
